#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import sys
import os
import gobject
from db import *
from motion import *
from gui import *
from MotionFactory import *

class Agent:
	def __init__(self,name):
		self.DBManager = DBManager()
		self.m = MotionManager(name,self)
		self.g = GUIManager(name,self)
		self.mf = MotionFactory()
		self.MaxSpace = 20
		self.AdminMail = 'root@root.com'
		self.workdir = "/tmp/osiriseye/"
		self.MaxDuration = 3600
		
	def getDBManager(self):
		return self.DBManager
		
	def getMotionFactory(self):
		return self.mf
		
	def getMaxSpace(self):
		return self.MaxSpace
	
	def getAdminMail(self):
		return self.AdminMail
		
	def getWorkDir(self):
		return self.workdir
		
	def getMaxDuration(self):
		return self.MaxDuration
		
	def setMaxSpace(self,m):
		self.MaxSpace = m
	
	def setAdminMail(self,a):
		self.AdminMail = a
		
	def setWorkDir(self,w):
		self.workdir = w
		
	def setMaxDuration(self,m):
		self.MaxDuration = m
